<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .outer{
            width: 600px;
            height: 400px;
            border: 1px solid black;
            margin: 0 auto;
            text-align: center;
            background: green;
        }
        .outer .btn{
            margin: 40px;
        }
    </style>
</head>
<body>
    <div class="outer">
        <div><button class="btn" onclick="jump()">账号与安全</button></div>
        <div><button class="btn" onclick="jump()">隐私设置</button></div>
        <div><button class="btn" onclick="jump()">通用设置</button></div>
        <div><button class="btn" onclick="jump()">通知设置</button></div>
    </div>

    <script>
        function jump(){
            document.querySelector('.btn').addEventListener('click',(e) => {
                location.href = 'http://www.baidu.com'
            })
        }

        document.querySelector('.outer').addEventListener('mouseout',(e)=>{
        e.target.style.background = 'green'
    })
    document.querySelector('.outer').addEventListener('mouseover',(e)=>{
    e.target.style.background = 'yellow'
    })
    </script>
</body>
</html>